import { questionType, difficulty, chkType, publishType } from '@/api/hmmm/constants.js'

// 展示题库管理label
export const showQuestionType = val => {
  return questionType.find(item => item.value === val - 0).label
}

// 展示难度label
export const showDifficulty = val => {
  return difficulty.find(item => item.value === val - 0).label
}

// 展示审核label
export const showChkType = val => {
  return chkType.find(item => item.value === val - 0).label
}

// 展示审核label
export const showpublishType = val => {
  return publishType.find(item => item.value === val - 0).label
}
